package com.bwsoft.portal.service;

import java.io.File;
import java.util.List;

import com.bwsoft.admin.domain.Account;
import com.bwsoft.admin.domain.Report;
import com.bwsoft.api.pojo.ResponsePojo;
import com.bwsoft.portal.domain.valueObject.ReportVO;

public interface ReportService {
	public static final String NAME = "portalReportServiceImpl";

	/**
	 * 分页查询内容
	 * @return 内容的集合
	 */
	List<Report> findData(Integer page, Integer rows, String s_reportNumber, String s_sampleName, Account account);
	
	/**
	 * 查询总数
	 * 
	 * @return	 标准总数
	 */
	Long getTotalCount(String s_reportNumber, String s_sampleName, Account account);
	
	/**
	 * 获取Vo	
	 * 
	 * @param reports
	 * @param integer 
	 * @return
	 * @throws Exception 
	 */
	List<ReportVO> getVo(List<Report> reports, Integer integer) throws Exception;

	ResponsePojo checkCompName(String compName);

	ResponsePojo saveReport(Account company, Account account,
			String reportNumber, String sampleName, String scrqph, File report,
			String reportFileName);

	ResponsePojo saveMultiReport(Account company, Account uploader,
			File file, String fileFileName);
}
